module.exports = {
    // publicPath: process.env.NODE_ENV === 'production' ? '/jiancai/' : './', //这用于打包分开线上和开发打的包
    publicPath: '/bmh5/',
    pwa: {
        iconPaths: {
            favicon32: 'favicon.ico',
            favicon16: 'favicon.ico',
            appleTouchIcon: 'favicon.ico',
            maskIcon: 'favicon.ico',
            msTileImage: 'favicon.ico'
        }
    },
    devServer: {
        port: 8090,
        host: 'localhost',
        open: true,
        
        proxy: {
            '/api': {
                target: 'https://pv.sohu.com',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/api': '/' //通过pathRewrite重写地址，将前缀/api转为/
                }

            },
            '/apiMobel': {
                target: '192.168.4.11:9090',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/apiMobel': 'apiMobel' //通过pathRewrite重写地址，将前缀/api转为/
                }

            }
        },
    }
}